package arrays;

import java.util.Arrays;
import java.util.Scanner;

public class arrays_5 {
    public static void main (String [] args ){

        int temp ;
        int intarrays[] = new int[]{ 68, 2, 16, 9, 7};

        for (int i = 0; i < intarrays.length-1; i++) {
            for (int j = 0; j < intarrays.length - i - 1; j++) {
                if ( intarrays[j] >= intarrays[j+1] ){
                    temp =  intarrays[j] ;
                    intarrays [j] = intarrays [j+1] ;
                    intarrays [j+1] = temp ;
                }
            }
        }

            System.out.println( Arrays.toString(intarrays) );


    }
}
